<?php

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class OperationLog
{
    use Dispatchable, InteractsWithSockets, SerializesModels;
    public $name;
    public $idCard;
    public $operationType;
    public $serviceType;
    public $type;
    public $mainUid;
    public $operationUrl;
    public $operationContent;
    public $operationTime;
    public $logInfo;


    /**
     * Create a new event instance.
     *
     * @param $name
     * @param $idCard
     * @param $operationType
     * @param $serviceType
     * @param $type
     * @param $mainUid
     * @param $operationUrl
     * @param $operationContent
     * @param $operationTime
     * @param $logInfo
     */
    public function __construct($name,$idCard,$operationType,$serviceType,$type,$mainUid,$operationUrl,$operationContent,$operationTime,$logInfo)
    {

        $this->name = $name;
        $this->idCard = $idCard;
        $this->operationType = $operationType;
        $this->serviceType = $serviceType;
        $this->type = $type;
        $this->mainUid = $mainUid;
        $this->operationUrl = $operationUrl;
        $this->operationContent = $operationContent;
        $this->operationTime = $operationTime;
        $this->logInfo = $logInfo;
    }
//
//    /**
//     * Get the channels the event should broadcast on.
//     *
//     * @return \Illuminate\Broadcasting\Channel|array
//     */
//    public function broadcastOn()
//    {
//        return new PrivateChannel('channel-name');
//    }
}
